package com.medical.literature.search.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 搜索历史实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("search_history")
public class SearchHistory {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 搜索关键词
     */
    private String keyword;

    /**
     * 搜索结果数量
     */
    private Integer resultCount;

    /**
     * 搜索时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime searchTime;
}